package com.stylefeng.guns.modular.fileManage.service;

import com.stylefeng.guns.common.persistence.model.BrewsSequence;
import com.stylefeng.guns.common.persistence.model.ZyPicture;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lsy
 * @since 2017-12-26
 */
public interface IZyPictureService extends IService<ZyPicture> {

   /**
    * 根据茶叶id查询对应图片
    *
    * @param teaId
    * @return
    */
   List<ZyPicture> selectByTeaId(Integer teaId);

   /**
    * 将图片id与实体id关联
    * @param brewsId
    * @param pictureId
    */
   void selectorPictureByBrews(Integer brewsId,Integer sequence,Integer pictureId);


   /**
    * 根据茶叶Id查询对应冲泡方式图片
    * @param teaId
    * @return
    */
   List<BrewsSequence> selectBrewsPictures(Integer teaId);
}
